import { createApp } from "vue";
import App from "./App.vue";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import router from "./router";
import "./assets/css/index.css";
import "@/assets/css/cover-element.scss";

import { createPinia } from "pinia";
import SvgIcon from "@/components/SvgIcon.vue";
import PageHeader from "@/components/PageHeader.vue";

import i18n from "@/i18n";

const app = createApp(App);
app.component("SvgIcon", SvgIcon);
app.component("PageHeader", PageHeader);
app.use(ElementPlus, {
  // locale: i18n.global.locale.value === 'zh' ? zhCn : en,
});
app.use(router);
app.use(createPinia());
app.use(i18n);
app.mount("#app");
